//
//  WmcCustomBusinessAPI.swift
//  YPWatermarkCamera
//
//  Created by 赵新 on 2022/5/12.
//

import Foundation

struct WmcIntegralBusinessAPI {
    /// 获取用户是否有资格参与活动接口
    /// - DocumentUrl: http://rap2.taobao.org/organization/repository/editor?id=297881&mod=511396
    static func integralQualification(activity: Int) -> Observable<WmcIntegralModel> {
        let path = "/api/activity/tips?activity=\(activity)"
        return WmcNetworkRequest.requestData(path: path) { request in
            request.method = .get
        }.parseModelWithClass(WmcIntegralModel.self)
    }
}
